/**
 * @(#)ReserveAddConfigServiceImpl.java 2017年9月27日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.jsbd.boss.dao.IAddReserveConfigDAO;
import org.jsbd.boss.domian.channel.AddReserveConfigVo;
import org.jsbd.boss.service.IReserveAddConfigService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * TODO 请加入本类的说明
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */

@Service
public class ReserveAddConfigServiceImpl implements IReserveAddConfigService{
	public static final Logger LOGGER = LoggerFactory.getLogger(ReserveAddConfigServiceImpl.class);

	@Resource
	private IAddReserveConfigDAO addReserveConfigDAO;

	
	@Override
	public List<AddReserveConfigVo> selectConfigList(String mark) {
		AddReserveConfigVo record = new AddReserveConfigVo();
		record.setMark(mark);
		return addReserveConfigDAO.selectConfigList(record);
	}

	@Override
	public void saveConfig(List<AddReserveConfigVo> configList) {
		addReserveConfigDAO.batchInsertRecord(configList);
	}

	@Override
	public void deleteConfig(Integer id) {
		addReserveConfigDAO.deleteRecord(id);
	}
}
